originalUrl | The full, original URL submitted by the user that needs to be shortened. It can be any valid HTTP or HTTPS address. |
shortUrl | The generated, shortened URL that redirects to the original URL. It's composed of the base domain and a unique shortCode. |
shortCode | A unique identifier (typically 8 characters long) used to represent the original URL in a shortened form. It is appended to the base domain. |
shorten() | A service method responsible for generating and saving a short code for a new URL or retrieving an existing one. |
resolve() | A service method that takes a shortCode and returns the corresponding originalUrl, if found. |